package com.boyunv.interpreter.example02;
/*
 *@description
 *
 *@author boyunv
 *@create 2023/9/10 8:40
 *@version 1.0
 */

public class DivExpression implements Expression{
    
    private Expression exp1;
    private Expression exp2;
    
    public DivExpression(Expression exp1, Expression exp2) {
        this.exp1 = exp1;
        this.exp2 = exp2;
    }
    
    @Override
    public long interpreter() {
        return exp1.interpreter()/exp2.interpreter();
    }
    
    @Override
    public long interpreter(String number) {
        return 0;
    }
}
